﻿@model LeadMaster.Models.CallCentres

<div class="spacer"></div>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Edit Call Centres</legend>
        @Html.HiddenFor(model => model.CallCentreID)
        @Html.HiddenFor(model => model.pokey)
        @Html.HiddenFor(model => model.LogOn)

        <div class="editor-label">
            @Html.LabelFor(model => model.CallCentre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CallCentre)
            @Html.ValidationMessageFor(model => model.CallCentre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Contact1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Contact1)
            @Html.ValidationMessageFor(model => model.Contact1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Contact2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Contact2)
            @Html.ValidationMessageFor(model => model.Contact2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Contact3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Contact3)
            @Html.ValidationMessageFor(model => model.Contact3)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email1)
            @Html.ValidationMessageFor(model => model.Email1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email2)
            @Html.ValidationMessageFor(model => model.Email2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email3)
            @Html.ValidationMessageFor(model => model.Email3)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ccsuffix)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ccsuffix)
            @Html.ValidationMessageFor(model => model.ccsuffix)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Notes)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Notes, new  {@class="notes" })
            @Html.ValidationMessageFor(model => model.Notes)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.LabelFor(model => model.address)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.address, new { @class = "notes" })
            @Html.ValidationMessageFor(model => model.address)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.LabelFor(model => model.potitle)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.potitle, new { @class="largetextbox"})
            @Html.ValidationMessageFor(model => model.potitle)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.active)
            @Html.ValidationMessageFor(model => model.active)
        </div>
        <div class="spacer"></div>
        <div>
            <input type="submit" value="Save" />
        </div>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
